package com.sh.data.engine.domain.integration.api.webservice.model.param;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author : changkong
 * @date : 2022/3/11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ApiWsAuthParam {

    /**
     * 认证方式  noauth, basic, sign, token
     */
    @NotNull
    private String authType;

    /**
     * basic认证-用户名
     */
    private String authUsername;

    /**
     * basic认证-密码
     */
    private String authPassword;

    /**
     * sign认证-accessKey
     */
    private String accessKey;

    /**
     * sign认证-accessSecret
     */
    private String accessSecret;

    /**
     * token认证-token
     */
    private String accessToken;

    /**
     * jar缓存key
     */
    private String advancedCacheKey;

    /**
     * jar文件名
     */
    private String advancedFileName;

    /**
     * jar文件路径
     */
    private String advancedFilePath;

    /**
     * jar包class
     */
    private String advanceClassReference;

    /**
     * jar包方法名
     */
    private String advanceMethodName;

    /**
     * 变量有效期
     */
    private Date expires;
}
